//处理地区相关的前端请求
import {requestGet, requestPost} from '../request'

//对应expert/expertInfo.js中同名函数，应将其迁移至此
export function ManageAreaTree() {
	return requestGet('/manageArea/ManageAreaTree')
}

export function selectByParentId(parentid) {
	return requestGet('/manageArea/selectByPId?parentid=' + parentid)
}

export function insert(manageArea) {
	return requestPost('/manageArea/insert', manageArea)
}

export function update(manageArea) {
	return requestPost('/manageArea/update', manageArea)
}

export function deleteAreaById(id) {
	return requestGet('/manageArea/deleteById?id=' + id)
}